package com.tjcd.project.library_base.common.widget;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.ListView;


/**
 * @Author jiangKunKun
 * @CreateDate 2021/7/9
 * @Description 嵌套显示问题
 * @SpittingGrooves
 */
public class CustomScrollListView extends ListView {

    public CustomScrollListView(Context context){
        super(context);
    }

    public CustomScrollListView(Context context, AttributeSet attrs){
        super(context, attrs);
    }

    public CustomScrollListView(Context context, AttributeSet attrs, int defStyleAttr){
        super(context, attrs, defStyleAttr);
    }


    @Override
    public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
        int expandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2,
                MeasureSpec.AT_MOST);
        super.onMeasure(widthMeasureSpec, expandSpec);

    }
}
